package com.java.model;

import java.util.Date;

/**
 * @desc
 * @version 2016年5月11日
 */
public class Order {

	private Integer id;// 运单号
	private Integer userId;// 用户
	private String userName;// 用户名称
	private Integer companyId;// 快递公司
	private String companyName;// 快递公司
	// private User user;
	// private Company company;
	private Date createTime;// 下单时间
	private String address;// 源地址
	private String toAddress;// 目标地址
	private String weight;// 重量
	private String price;// 价格
	private String priceType;

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getCompanyName() {
		return companyName;
	}

	public void setCompanyName(String companyName) {
		this.companyName = companyName;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getUserId() {
		return userId;
	}

	public void setUserId(Integer userId) {
		this.userId = userId;
	}

	public Integer getCompanyId() {
		return companyId;
	}

	public void setCompanyId(Integer companyId) {
		this.companyId = companyId;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public String getToAddress() {
		return toAddress;
	}

	public void setToAddress(String toAddress) {
		this.toAddress = toAddress;
	}

	public String getWeight() {
		return weight;
	}

	public void setWeight(String weight) {
		this.weight = weight;
	}

	public String getPrice() {
		return price;
	}

	public void setPrice(String price) {
		this.price = price;
	}

	public String getPriceType() {
		return priceType;
	}

	public void setPriceType(String priceType) {
		this.priceType = priceType;
	}

	@Override
	public String toString() {
		return "Order [id=" + id + ", userId=" + userId + ", userName=" + userName + ", companyId=" + companyId
				+ ", companyName=" + companyName + ", createTime=" + createTime + ", address=" + address
				+ ", toAddress=" + toAddress + ", weight=" + weight + ", price=" + price + ", priceType=" + priceType
				+ "]";
	}

}
